package com.ruoyi.webs.hzhelp.notice.service.impl;

import java.util.List;

import com.ruoyi.webs.hzhelp.notice.domain.HzHelpNotice;
import com.ruoyi.webs.hzhelp.notice.mapper.HzHelpNoticeMapper;
import com.ruoyi.webs.hzhelp.notice.service.IHzHelpNoticeService;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-03
 */
@Service
public class HzHelpNoticeServiceImpl implements IHzHelpNoticeService
{
    private HzHelpNoticeMapper hzHelpNoticeMapper;

    /**
     * 查询信息
     * 
     * @param ID 信息主键
     * @return 信息
     */
    @Override
    public HzHelpNotice selectHzHelpNoticeByID(String ID)
    {
        return hzHelpNoticeMapper.selectHzHelpNoticeByID(ID);
    }

    /**
     * 查询信息列表
     * 
     * @param hzHelpNotice 信息
     * @return 信息
     */
    @Override
    public List<HzHelpNotice> selectHzHelpNoticeList(HzHelpNotice hzHelpNotice)
    {
        return hzHelpNoticeMapper.selectHzHelpNoticeList(hzHelpNotice);
    }

    /**
     * 新增信息
     * 
     * @param hzHelpNotice 信息
     * @return 结果
     */
    @Override
    public int insertHzHelpNotice(HzHelpNotice hzHelpNotice)
    {
        return hzHelpNoticeMapper.insertHzHelpNotice(hzHelpNotice);
    }

    /**
     * 修改信息
     * 
     * @param hzHelpNotice 信息
     * @return 结果
     */
    @Override
    public int updateHzHelpNotice(HzHelpNotice hzHelpNotice)
    {
        return hzHelpNoticeMapper.updateHzHelpNotice(hzHelpNotice);
    }

    /**
     * 批量删除信息
     * 
     * @param IDs 需要删除的信息主键
     * @return 结果
     */
    @Override
    public int deleteHzHelpNoticeByIDs(String IDs)
    {
        return hzHelpNoticeMapper.deleteHzHelpNoticeByIDs(Convert.toStrArray(IDs));
    }

    /**
     * 删除信息信息
     * 
     * @param ID 信息主键
     * @return 结果
     */
    @Override
    public int deleteHzHelpNoticeByID(String ID)
    {
        return hzHelpNoticeMapper.deleteHzHelpNoticeByID(ID);
    }
}
